<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.SYS" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.SYS" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:complexType name="Message">
    <xs:sequence>
      <xs:element minOccurs="0" name="ActionCount" type="xs:int" />
      <xs:element minOccurs="0" name="ApprovalTask" type="xs:int" />
      <xs:element minOccurs="0" name="ApprovalTaskID" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Code" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Date" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Description" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="FromEmpId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="FromMessageID" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="MessageId" type="xs:int" />
      <xs:element minOccurs="0" name="MessageStatus" type="tns:MessageWarningStatus" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Remarks" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RuleApprove" type="xs:int" />
      <xs:element minOccurs="0" name="RuleApproveID" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Title" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ToEmpId" nillable="true" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Message" nillable="true" type="tns:Message" />
  <xs:simpleType name="MessageWarningStatus">
    <xs:restriction base="xs:string">
      <xs:enumeration value="Unwarn" />
      <xs:enumeration value="Warn" />
      <xs:enumeration value="Read" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="MessageWarningStatus" nillable="true" type="tns:MessageWarningStatus" />
  <xs:complexType name="ArrayOfMessage">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="Message" nillable="true" type="tns:Message" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfMessage" nillable="true" type="tns:ArrayOfMessage" />
</xs:schema>